<template>
  <div>
    <el-container>
      <el-aside width="200px">
        <el-menu
          default-active="2"
          class="el-menu-vertical-demo"
          router
          background-color="#545c64"
          text-color="#fff"
          active-text-color="#ffd04b"
        >
          <el-submenu index="1">
            <template slot="title">
              <i class="el-icon-s-operation"></i>
              <span>表格表单</span>
            </template>
              <el-menu-item index="/table">table</el-menu-item>
              <el-menu-item index="/form">form</el-menu-item>
          </el-submenu>
        </el-menu>
      </el-aside>
      <el-container>
         <el-main>
             <transition name="el-fade-in">
              <router-view />
            </transition>
        </el-main>
      </el-container>

    </el-container>
  </div>
</template>

<script>
export default {}
</script>

<style scoped>
.el-aside {
  background-color: #d3dce6;
  height: 100vh;
}

.el-main {
  background-color: #ccc;
  color: #333;
  height: 100vh;
}

body > .el-container {
  margin-bottom: 40px;
}
.el-menu{
  height: 100%;
}
</style>
